import sim
sim.status()
def SIM_Init():
    if sim.getStatus()==1:
        print("SIM init OK")
    else:
        print("SIM init failed",sim.getStatus())
#文本
import request

response = request.get("http://httpbin.org/get")
for i in response.text:
    print(i)
#json
import request

response = request.get("http://httpbin.org/get")
data = response.json()
print(data)

#高德地图API
def location_to_GCJ02(lon,lat,coordsys):
    url = "https://restapi.amap.com/v3/assistant/coordinate/convert?key="+"你的keys"+"&locations="+str(lon)+","+str(lat)+"&coordsys="+str(coordsys)
    r = requests.get(url).json()
    print(r)
    return r["locations"]
